public class Lesson1 {
    public static void main(String[] args) {
        int b = 0;
        for (int i = 1; i <100 ; i+=2) {
            b+=i;
        }
        System.out.println("1+3+5........+99的和是"+b);
    }
}
